package com.cashmanager.shared.vo;

import java.util.Date;

public class Cash extends ValueObject{
	public static final class Fields{
		public final static String SEQ = "seq";
		public final static String CASHIER_CDE = "cashier";
		public final static String OPERATOR_CDE = "operator";
		public final static String CARD_NO ="card";
		public final static String UID = "uid";
		public final static String CURRENCY_CDE = "currency";
		public final static String FACE_VALUE = "value";
		public final static String BRANCH_CDE = "branch";
		public final static String VERSION = "ver";
	}
	private long cashId;
	private String sequence;
	private String uid;
	private String currencyCde;
	private long faceValue;
	private String version;
	private String cashierCde;
	private String operatorCode;
	private String branchCode;
	private String cardNo;
	private String resultCode;
    private Date dateTime;

    public String toXML(){
		StringBuilder sb = new StringBuilder();
		return sb.append(fieldToXml(Fields.SEQ,sequence)).
		   append(fieldToXml(Fields.CASHIER_CDE, cashierCde)).
		   append(fieldToXml(Fields.OPERATOR_CDE, operatorCode)).
		   append(fieldToXml(Fields.CARD_NO,cardNo)).
		   append(fieldToXml(Fields.UID, uid)).
		   append(fieldToXml(Fields.CURRENCY_CDE,currencyCde)).
		   append(fieldToXml(Fields.FACE_VALUE, faceValue)).
		   append(fieldToXml(Fields.BRANCH_CDE, branchCode)).
		   append(fieldToXml(Fields.VERSION, version)).toString();
		   
	}
	public long getCashId() {
		return cashId;
	}

	public void setCashId(long cashId) {
		this.cashId = cashId;
	}



	public String getSequence() {
		return sequence;
	}



	public void setSequence(String sequence) {
		this.sequence = sequence;
	}



	public String getUid() {
		return uid;
	}



	public void setUid(String uid) {
		this.uid = uid;
	}



	public String getCurrencyCde() {
		return currencyCde;
	}



	public void setCurrencyCde(String currencyCde) {
		this.currencyCde = currencyCde;
	}



	public long getFaceValue() {
		return faceValue;
	}



	public void setFaceValue(long faceValue) {
		this.faceValue = faceValue;
	}



	public String getVersion() {
		return version;
	}



	public void setVersion(String version) {
		this.version = version;
	}



	public String getCashierCde() {
		return cashierCde;
	}



	public void setCashierCde(String cashierCde) {
		this.cashierCde = cashierCde;
	}



	public String getOperatorCode() {
		return operatorCode;
	}



	public void setOperatorCode(String operatorCode) {
		this.operatorCode = operatorCode;
	}



	public String getBranchCode() {
		return branchCode;
	}



	public void setBranchCode(String branchCode) {
		this.branchCode = branchCode;
	}



	public String getCardNo() {
		return cardNo;
	}



	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}



	public String getResultCode() {
		return resultCode;
	}



	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}


	public Date getDateTime() {
		return dateTime;
	}



	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}


	public Cash() {
	}




}